import request from '@/utils/request'

// 查询指标数据
export function getIndexData(data) {
    return request({
        url: "/pk-iot/indexMgr/list",
        method: "get",
        params: data
    })

}

// 新增数据
export function addNewData(data) {
    return request({
        url: "/pk-iot/indexMgr/save",
        method: "post",
        data: data
    })
}

// 编辑数据
export function editData(data){
    return request({
        url:"/pk-iot/indexMgr/update",
        method:"post",
        data:data
    })

}

// 删除数据
export function deleteData(data){ 
    console.log(data,"<<<===  data-删除请求传递过来的参数")
    return request({
        url:"/pk-iot/indexMgr/delete",
        method:"delete",
        data:data
    })
}